<extend name="./Public/layout.html" />
<block name="main">

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">广告列表</h3>
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <table id="example2" class="table table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>id</th>
                                <th>URL</th>
                                <th>广告图</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="data" id="vo">
                                <br/>
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.url}</td>
                                    <td><img src="__ROOT__/Uploads/{$vo.img}" alt="" width='60' height="30"></td>

                                    <td>

                                        <a href="__APP__/Advertisement/findAdver/id/{$vo.id}"><button class="btn  btn-primary">编辑</button></a>
                                        <a href="__APP__/Advertisement/delAdver/id/{$vo.id}"><button class="btn  btn-primary">删除</button></a>
                                    </td>
                                </tr>
                            </volist>


                            </tbody>

                        </table>
                    </div><!-- /.box-body -->
                </div><!-- /.box -->

            </div><!-- /.col -->
        </div><!-- /.row -->
    </section><!-- /.content -->

</block>